//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#include <tmf_constants.h>
#include <tmf_macros.h>
#define __THIS_FILE__ "editor\fn_active.sqf"

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_object","_result"];
DEFAULT_PARAM(_object,0,"");
_result = false;
if (IS_OBJECT(_object)) then {
	TRACE_1("Checks",ARR_4((!isnull _object),(alive _object),(canMove _object),(if (_object isKindOf "AllVehicles") then { ({alive _x} count (crew _object)) > 0 } else { true })));
	_result = (!isnull _object) && (alive _object) && (canMove _object) && (if (_object isKindOf "AllVehicles") then { ({alive _x} count (crew _object)) > 0 } else { true });
};
TRACE_1("End",_result);
TMFPROFILERSTOP;
_result;